package com.coco.bargain.mapper;

import com.coco.bargain.pojo.TbBargainUser;
import com.coco.bargain.vo.BargainItemTableSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BargainUserMapper {
    List<TbBargainUser> seach(BargainItemTableSearchVo bargainItemTableSearchVo);

    void add(TbBargainUser tbBargainUser);

    void update(@Param("record") TbBargainUser tbBargainUser);

    TbBargainUser findById(Long id);

    Integer findByUserBargainGoodCount(Long gid);

    TbBargainUser findByCard(String card);

    void deleteById(Long id);
}
